﻿using System;

namespace WeiTap.Validator.ValidatorSelector
{
    public class DefaultValidatorSelector : IValidatorSelector
    {
        public bool CanExecute(IValidationRule rule, string propertyPath, ValidationContext context)
        {
            ///默认忽略所有的规则
            if (!string.IsNullOrEmpty(rule.RuleSet)) return false;
            return true;
        }
    }
}